package com.shao.service;

import com.shao.pojo.Book;
import com.shao.pojo.Page;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: SJP
 * Date: 2021/5/17
 * Time: 19:42
 * Description: No Description
 */
public interface BookService {
    public Page<Book> page(Integer pageNn, Integer pageSize);
    public void addBook(Book book);
    public void deleteBookById(Integer id);
    public void updateBook(Book book);
    public Book queryBookById(Integer id);
    public List<Book> queryBooks();

    Page<Book> pageByPrice(int pageNn, int pageSize, int min, int max);
}
